package bainuo

import com.alibaba.fastjson.JSON

def execute() {
    def conn
    def dataList = [id: null,wareHouseNo:null,wareHouseName:null,storeKeeperName:null,wareHouseType:null,remark:null]
    try {
        conn = groovy.sql.Sql.newInstance(mypara.hqcon(2))

        conn.execute("update bd_stordoc set code = '" + datalist["wareHouseNo"] + "' ,name = '" + datalist["wareHouseName"] + "" +
                "' ,principalcode = '" + datalist["storeKeeperName"] + "',memo = '" + datalist["remark"] + "'  where pk_stordoc = '" + datalist["id"] + "'")
        mypara.msg("修改成功")
    } catch (Exception e) {
        e.printStackTrace();
    } finally {
        if (conn != null) {
            conn.close()
        }
    }
}


def update(){

}
